package com.ruoyi.grape.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物候期信息对象 tb_grape_phen
 * 
 * @author ld
 * @date 2023-11-18
 */
public class GrapePhen extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long phenId;

    /** 年份 */
    @Excel(name = "年份")
    private String phenYear;

    /** 葡萄品种 */
    @Excel(name = "葡萄品种")
    private String grapeSort;

    /** 物候期 */
    @Excel(name = "物候期")
    private String phenName;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 记录者 */
    @Excel(name = "记录者")
    private String recorder;

    /** 备注 */
    @Excel(name = "备注")
    private String phenNote;

    public void setPhenId(Long phenId) 
    {
        this.phenId = phenId;
    }

    public Long getPhenId() 
    {
        return phenId;
    }
    public void setPhenYear(String phenYear) 
    {
        this.phenYear = phenYear;
    }

    public String getPhenYear() 
    {
        return phenYear;
    }
    public void setGrapeSort(String grapeSort) 
    {
        this.grapeSort = grapeSort;
    }

    public String getGrapeSort() 
    {
        return grapeSort;
    }
    public void setPhenName(String phenName) 
    {
        this.phenName = phenName;
    }

    public String getPhenName() 
    {
        return phenName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setRecorder(String recorder) 
    {
        this.recorder = recorder;
    }

    public String getRecorder() 
    {
        return recorder;
    }
    public void setPhenNote(String phenNote) 
    {
        this.phenNote = phenNote;
    }

    public String getPhenNote() 
    {
        return phenNote;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("phenId", getPhenId())
            .append("phenYear", getPhenYear())
            .append("grapeSort", getGrapeSort())
            .append("phenName", getPhenName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("recorder", getRecorder())
            .append("phenNote", getPhenNote())
            .toString();
    }
}
